<label style="padding-top:10px">
	<div ng-if="item.{name}=={open_value}" class="switch  switchOn" ng-click="item.{name}={close_value};post({'{name}':{close_value}},'{set}','{key}='+item.{key},'message')"></div>
	<div ng-if="item.{name}!={open_value}" class="switch" ng-click="item.{name}={open_value};post({'{name}':{open_value}},'{set}','{key}='+item.{key},'message')"></div>
</label>